package com.cn.qtms.entity;//类注释设置模板

import com.cn.qtms.base.entity.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Name:TmGoodsInfo
 * @Description:
 * @Author: zhangyang
 * @Date: 2019-12-27 15:15
 **/
@Entity
@Table(name = "tm_goods_info")
@org.hibernate.annotations.Table(appliesTo = "tm_goods_info",comment="商品详情表")
@Getter
@Setter
public class TmGoodsInfo extends BaseEntity {

    @Column(name = "goods_id", columnDefinition = "bigint(20) COMMENT '订单号'")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long  goodsId;

    @Column(name = "detail")
    private String detail;

    @Column(name = "logop")
    private String  logoP;

    @Column(name = "logoq")
    private String logoQ;

    @Column(name = "pic")
    private String pic;
}
